package com.ruoyi.product.domain;

import java.math.BigDecimal;

import com.ruoyi.product_category.domain.Product_category;
import com.ruoyi.user.domain.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品信息对象 sys_product
 * 
 * @author ruoyi
 * @date 2025-05-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 发布用户ID */
    @Excel(name = "发布用户ID")
    private Long userId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 产品图片 */
    @Excel(name = "产品图片")
    private String image;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String description;

    /** 商品单价 */
    @Excel(name = "商品单价")
    private BigDecimal price;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stock;

    /** 商品分类id */
    @Excel(name = "商品分类id")
    private Long categoryId;

    /** 状态（0-下架 1-上架） */
    @Excel(name = "状态", readConverterExp = "0=-下架,1=-上架")
    private Integer status;



    //    用户信息
    private User user;
//商品分类信息
    private Product_category product_category;


}
